package com.xiaoshuidi.cloud.module.guanwang.controller.admin.guanwang.configvo;

import com.xiaoshuidi.cloud.framework.common.util.json.JsonUtils;
import com.xiaoshuidi.cloud.module.guanwang.service.GuanWangConfiguration;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.ConstraintViolation;
import javax.validation.Validator;
import javax.validation.constraints.Size;
import java.util.List;
import java.util.Set;

@Data
public class BannerVO implements GuanWangConfiguration {

    @Size(min = 1, message = "请上传图片")
    private List<String> pictures;

    private String remark;

    @Override
    public Set<ConstraintViolation<GuanWangConfiguration>> verifyParam(Validator validator) {
        return validator.validate(this);
    }

}
